using System;
using System.Runtime.Serialization;

using SIMA.Core.Attributes;
using SIMA.Core.Data.Validators;
using SIMA.Core.Data.Entity;

namespace SIMA.Entities
{
	[Table("T_C_Usuario")]
	[Serializable]
	public class T_C_Usuario:XmlEntity
	{
		[DataMember]
		[PrimaryKey("Id_Usuario")]
		[Numeric]
		public int Id_Usuario{get; set;}
		[DataMember]
		[DataField("Nombres")]
		public string Nombres{get; set;}
		[DataMember]
		[DataField("Apellidos")]
		public string Apellidos{get; set;}
		[DataMember]
		[DataField("Telefono")]
		[Numeric]
		public int Telefono{get; set;}
		[DataMember]
		[DataField("Direccion")]
		public string Direccion{get; set;}
		[DataMember]
		[DataField("Fecha_Registro")]
		public DateTime Fecha_Registro{get; set;}
		[DataMember]
		[DataField("Fecha_Nacimiento")]
		public DateTime Fecha_Nacimiento{get; set;}
		[DataMember]
		[DataField("Email")]
		public string Email{get; set;}
		[DataMember]
        [Encrypted]
		[DataField("Contraseña")]
		public string Contraseña{get; set;}
		[DataMember]
		[ForeignKey("Id_Estado")]
		[Numeric]
		public int Id_Estado{get; set;}
		[DataMember]
		[DataField("Id_Perfil")]
		[Numeric]
		public int Id_Perfil{get; set;}
		[DataMember]
		[DataField("Id_TurnoMantenimiento")]
		[Numeric]
		public int Id_TurnoMantenimiento{get; set;}
		[DataMember]
		[DataField("Id_Trabajador")]
		[Numeric]
		public int Id_Trabajador{get; set;}
	}
}
